package cn.edu.hust.cm.glideimagedemo;

import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import cn.edu.hust.cm.widgets.GlideImageView;

public class OneImageActivity extends AppCompatActivity {

    private GlideImageView mIvOneImage;

    public static void start(Context context) {
        Intent starter = new Intent(context, OneImageActivity.class);
        context.startActivity(starter);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_one_image);

        mIvOneImage = (GlideImageView) findViewById(R.id.iv_one_image);
        mIvOneImage.setImageUrl("http://campusx-10046755.image.myqcloud.com/931c56f7-5c52-4db3-bf1d-14b7db3df5c6");
    }
}
